package com.hdax.easybuy.api;

import com.hdax.easybuy.entity.News;
import com.hdax.easybuy.entity.Product;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;


@RequestMapping(value = "/providerNews")
@FeignClient(value = "easybuy-database-provider")
public interface NewsServiceClient {

    @RequestMapping("/queryNewsAll")
    public List<News> getAllNews();


}

